package com.ktjy.ktmall.dao;

import com.ktjy.ktmall.entity.TUser;

public interface TUserDao {
    //查询所有用户
    public java.util.List<TUser> getUserList();


    //根据用户名查询用户
    public TUser getUserByLoginName(String loginName);


    //根据用户id查询用户
    public TUser getUserById(long id);


    //添加用户
    public boolean addUser(TUser user);

    //更新用户
    public void updateUser(TUser user);

    //删除用户
    public void deleteUser(long id);

    //登录
    public TUser login(String loginName, String password);
}
